import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

// 商务相关
import { ApesTodayInsuranceOrderTotalComponent } from './business/apes-today-insurance-order-total/apes-today-insurance-order-total.component';
import { ApesTodayInsuranceOrderStoreComponent } from './business/apes-today-insurance-order-total/apes-today-insurance-order/apes-today-insurance-order-store.component';
import { ApesTodayInsuranceOrderPersonComponent } from './business/apes-today-insurance-order-total/apes-today-insurance-order/apes-today-insurance-order-person.component';
import { ApesNewlyInsuranceMemberComponent } from './business/apes-newly-insurance-member/apes-newly-insurance-member.component';
import { ApesNewlyInsuranceMemberStoreComponent } from './business/apes-newly-insurance-member/apes-newly-insurance-member-store/apes-newly-insurance-member-store.component';
import { ApesKeepInsuranceOrderComponent } from './business/apes-keep-insurance-order/apes-keep-insurance-order.component';
import { ApesKeepInsuranceOrderStoreComponent } from './business/apes-keep-insurance-order/apes-keep-insurance-order-store/apes-keep-insurance-order-store.component';
import { ApesCarsInsuranceOrderComponent } from './business/apes-cars-insurance-order/apes-cars-insurance-order.component';
import { ApesCarsInsuranceOrderPersonComponent } from './business/apes-cars-insurance-order/apes-cars-insurance-order-person/apes-cars-insurance-order-person.component';
import { ApesIncreaseInsuranceOrderComponent } from './business/apes-increase-insurance-order/apes-increase-insurance-order.component';
import { ApesIncreaseInsuranceOrderPersonComponent } from './business/apes-increase-insurance-order/apes-increase-insurance-order-person/apes-increase-insurance-order-person.component';
import { CaseAdministrationComponent } from './business/case-administration/case-administration.component';
import { CaseFollowingComponent } from './business/case-following/case-following.component';
import { AmountRecordComponent } from './business/amount-record/amount-record.component';
import { ControlPoolComponent } from './business/control-pool/control-pool.component';

// 门管相关
import { SheetMetalCountComponent } from './door-tube-center/sheet-metal-count/sheet-metal-count.component';
import { SheetMetalDetailComponent } from './door-tube-center/sheet-metal-count/sheet-metal-detail/sheet-metal-detail.component';
import { SheetMetalDailyComponent } from './door-tube-center/sheet-metal-count/sheet-metal-daily/sheet-metal-daily.component';

import { ShopTrafficComponent } from './door-tube-center/shop-traffic/shop-traffic.component';
import { ShopTrafficStoreComponent } from './door-tube-center/shop-traffic/shop-traffic-store/shop-traffic-store.component';
import { NewlyVipAnalysisComponent } from './door-tube-center/newly-vip-analysis/newly-vip-analysis.component';
import { NewlyVipAnalysisStoreComponent } from './door-tube-center/newly-vip-analysis/newly-vip-analysis-store/newly-vip-analysis-store.component';
import { AnnualCardOrderComponent } from './door-tube-center/annual-card-order/annual-card-order.component';
import { OrderNotArrivalComponent } from './door-tube-center/connection-node/order-not-arrival/order-not-arrival.component';
import { PickCarProportionComponent } from './door-tube-center/connection-node/pick-car-proportion/pick-car-proportion.component';
import { UncheckedRingInspectionComponent } from './door-tube-center/connection-node/unchecked-ring-inspection/unchecked-ring-inspection.component';
import { ThirtySixUncheckedComponent } from './door-tube-center/connection-node/thirty-six-unchecked/thirty-six-unchecked.component';
import { ServicePerformanceComponent } from './door-tube-center/connection-node/service-performance/service-performance.component';
import { NotQuickCheckComponent } from './door-tube-center/connection-node/not-quick-check/not-quick-check.component';
import { ServiceTrackComponent } from './door-tube-center/big-single-track/service-track/service-track.component';
import { ServiceRateComponent } from './door-tube-center/big-single-track/service-rate/service-rate.component';
import { WashBeautyComponent } from './door-tube-center/connection-node/wash-beauty/wash-beauty.component';

//  车辆信息
import { CarInfoDetailsComponent } from './car-info-details/car-info-details.component';
import { CarListComponent } from './car-info-details/car-list/car-list.component';

// 采购相关
import { QuotationMonitorComponent } from './purchase-report-form/quotation-monitor/quotation-monitor.component';
import { SupplierQuotationComponent } from './purchase-report-form/supplier-quotation/supplier-quotation.component';
import { SupplierFirmOrderComponent } from './purchase-report-form/supplier-firm-order/supplier-firm-order.component';
import { SupplierBillingComponent } from './purchase-report-form/supplier-billing/supplier-billing.component';
import { SupplierNotStockComponent } from './purchase-report-form/supplier-not-stock/supplier-not-stock.component';
import { PurchaseBillingComponent } from './purchase-report-form/purchase-billing/purchase-billing.component';
import { ArrivalMonitorComponent } from './purchase-report-form/arrival-monitor/arrival-monitor.component';
import { OrderCycleComponent } from './purchase-report-form/order-cycle/order-cycle.component';
import { StoreWarehousingComponent } from './purchase-report-form/store-warehousing/store-warehousing.component';
import { TransferStationSignComponent } from './purchase-report-form/transfer-station-sign/transfer-station-sign.component';
import { TransferStationFactoryComponent } from './purchase-report-form/transfer-station-factory/transfer-station-factory.component';
import { ExpatriateWorkOrderComponent } from './purchase-report-form/expatriate-work-order/expatriate-work-order.component';
import { ComprehensiveAnalysisComponent } from './purchase-report-form/comprehensive-analysis/comprehensive-analysis.component';
import { IntegratedPanelComponent } from './purchase-report-form/integrated-panel/integrated-panel.component';

// 客服相关
import { OaMonitorComponent } from './client-service-center/oa-monitor/oa-monitor.component';
import { OaMonitorViewComponent } from './client-service-center/oa-monitor/oa-monitor-view.component';
import { ComplaintRateComponent } from './client-service-center/complaint-rate/complaint-rate.component';
import { MonthlyComplaintComponent } from './client-service-center/monthly-complaint/monthly-complaint.component';

// 人资新增报表
import { AdministrationComponent } from './administration/administration.component';
import { AdministrationStoreComponent } from './administration/administration-store.component';
import { AttendanceMonthlyFormComponent } from './attendanceMonthly/attendanceMonthly-form.component';

// 总账报表
import { LedgerFormComponent } from './ledger-form/ledger-form.component';
import { ScheduleFormComponent } from './schedule/schedule-form.component';

// 状态流管理
import { StateMachineComponent } from './state-flow-management/state-machine/state-machine.component';

// 部门总控
import { DepartmentControlComponent } from './department-control/department-control.component';
import { CustomerServiceControlComponent } from './department-control/customer-service/customerService-control.component';
import { BusinessCenterControlComponent } from './department-control/business-center/businessCenter-control.component';
import { DataCenterControlComponent } from './department-control/data-center/dataCenter-control.component';
import { FinancialCenterControlComponent } from './department-control/financial-center/financialCenter-control.component';
import { GovernmentCentreControlComponent } from './department-control/government-centre/governmentCentre-control.component';
import { PortalCenterControlComponent } from './department-control/portal-center/portalCenter-control.component';
import { PurchasingCenterControlComponent } from './department-control/purchasing-center/purchasingCenter-control.component';
import { WarehouseCenterControlComponent } from './department-control/warehouse-center/warehouseCenter-control.component';
import { SystemMasterControlComponent } from './department-control/system-master/systemMaster-control.component';
import { StoreCenterControlComponent } from './department-control/store-center/storeCenter-control.component';

// 综合分析
import { CustomerComplaintComponent } from './department-control/comprehensive-analysis/customer-complaint/customer-complaint.component';
import { TechnicalReviewComponent } from './department-control/comprehensive-analysis/technical-review/technical-review.component';
import { OutsourcingAnalysisComponent } from './department-control/comprehensive-analysis/outsourcing-analysis/outsourcing-analysis.component';
import { LossAssessmentComponent } from './department-control/comprehensive-analysis/loss-assessment/loss-assessment.component';
import { CarInsuranceComponent } from './department-control/comprehensive-analysis/car-insurance/car-insurance.component';
import { InternalAssociationComponent } from './department-control/comprehensive-analysis/Internal-association/internal-association.component';
import { TrendAnalysisComponent } from './department-control/comprehensive-analysis/trend-analysis/trend-analysis.component';

// 门店经营
import { StoreMoneyComponent } from './business/store-money/store-money.component';

const routes: Routes = [
  // 商务相关
  { path: 'business/apesTodayInsuranceOrderTotal', component: ApesTodayInsuranceOrderTotalComponent },
  {
    path: 'business/apesTodayInsuranceOrderTotal/apesTodayInsuranceOrderStore',
    component: ApesTodayInsuranceOrderStoreComponent,
  },
  {
    path: 'business/apesTodayInsuranceOrderTotal/apesTodayInsuranceOrderPerson',
    component: ApesTodayInsuranceOrderPersonComponent,
  },
  { path: 'business/apesNewlyInsuranceMember', component: ApesNewlyInsuranceMemberComponent },
  {
    path: 'business/apesNewlyInsuranceMember/apesNewlyInsuranceMemberStore',
    component: ApesNewlyInsuranceMemberStoreComponent,
  },
  { path: 'business/apesKeepInsuranceOrder', component: ApesKeepInsuranceOrderComponent },
  {
    path: 'business/apesKeepInsuranceOrder/apesKeepInsuranceOrderStore',
    component: ApesKeepInsuranceOrderStoreComponent,
  },
  { path: 'business/apesCarsInsuranceOrder', component: ApesCarsInsuranceOrderComponent },
  {
    path: 'business/apesCarsInsuranceOrder/apesCarsInsuranceOrderPerson',
    component: ApesCarsInsuranceOrderPersonComponent,
  },
  { path: 'business/apesIncreaseInsuranceOrder', component: ApesIncreaseInsuranceOrderComponent },
  {
    path: 'business/apesIncreaseInsuranceOrder/apesIncreaseInsuranceOrderPerson',
    component: ApesIncreaseInsuranceOrderPersonComponent,
  },
  { path: 'business/caseAdministration', component: CaseAdministrationComponent },
  { path: 'business/caseFollowing', component: CaseFollowingComponent },
  { path: 'business/amountRecord', component: AmountRecordComponent },
  { path: 'business/controlPool', component: ControlPoolComponent },

  // 门管相关
  { path: 'door-tube-center/sheetMetalCount', component: SheetMetalCountComponent },
  { path: 'door-tube-center/sheetMetalCount/sheetMetalDaily', component: SheetMetalDailyComponent },
  { path: 'door-tube-center/sheetMetalCount/sheetMetalDetail/:data', component: SheetMetalDetailComponent },
  { path: 'door-tube-center/shopTraffic', component: ShopTrafficComponent },
  { path: 'door-tube-center/shopTraffic/shopTrafficStore', component: ShopTrafficStoreComponent },
  { path: 'door-tube-center/newlyVipAnalysis', component: NewlyVipAnalysisComponent },
  { path: 'door-tube-center/newlyVipAnalysis/newlyVipAnalysisStore', component: NewlyVipAnalysisStoreComponent },
  { path: 'door-tube-center/annualCardOrder', component: AnnualCardOrderComponent },
  { path: 'door-tube-center/connectionNode/orderNotArrival', component: OrderNotArrivalComponent },
  { path: 'door-tube-center/connectionNode/pickCarProportion', component: PickCarProportionComponent },
  { path: 'door-tube-center/connectionNode/uncheckedRingInspection', component: UncheckedRingInspectionComponent },
  { path: 'door-tube-center/connectionNode/thirtySixUnchecked', component: ThirtySixUncheckedComponent },
  { path: 'door-tube-center/connectionNode/servicePerformance', component: ServicePerformanceComponent },
  { path: 'door-tube-center/connectionNode/notQuickCheckComponent', component: NotQuickCheckComponent },
  { path: 'door-tube-center/bigSingleTrack/serviceTrack', component: ServiceTrackComponent },
  { path: 'door-tube-center/bigSingleTrack/serviceRate', component: ServiceRateComponent },
  { path: 'door-tube-center/connectionNode/washBeautyComponent', component: WashBeautyComponent },

  //  车辆信息
  { path: 'car-info-details/carInfoDetailsComponent', component: CarInfoDetailsComponent },
  { path: 'car-info-details/carList/carListComponent', component: CarListComponent },

  // 采购相关
  { path: 'purchase-report-form/quotationMonitor/quotationMonitorComponent', component: QuotationMonitorComponent },
  { path: 'purchase-report-form/supplierQuotation/supplierQuotationComponent', component: SupplierQuotationComponent },
  { path: 'purchase-report-form/supplierFirmOrder/supplierFirmOrderComponent', component: SupplierFirmOrderComponent },
  { path: 'purchase-report-form/supplierBilling/supplierBillingComponent', component: SupplierBillingComponent },
  { path: 'purchase-report-form/supplierNotStock/supplierNotStockComponent', component: SupplierNotStockComponent },
  { path: 'purchase-report-form/purchaseBilling/purchaseBillingComponent', component: PurchaseBillingComponent },
  { path: 'purchase-report-form/arrivalMonitor/arrivalMonitorComponent', component: ArrivalMonitorComponent },
  { path: 'purchase-report-form/orderCycle/orderCycleComponent', component: OrderCycleComponent },
  { path: 'purchase-report-form/storeWarehousing/storeWarehousingComponent', component: StoreWarehousingComponent },
  {
    path: 'purchase-report-form/transferStationSign/transferStationSignComponent',
    component: TransferStationSignComponent,
  },
  {
    path: 'purchase-report-form/transferStationFactory/transferStationFactoryComponent',
    component: TransferStationFactoryComponent,
  },
  {
    path: 'purchase-report-form/expatriateWorkOrder/ExpatriateWorkOrderComponent',
    component: ExpatriateWorkOrderComponent,
  },
  {
    path: 'purchase-report-form/comprehensiveAnalysis/ComprehensiveAnalysisComponent',
    component: ComprehensiveAnalysisComponent,
  },
  { path: 'purchase-report-form/integratedPanel/IntegratedPanelComponent', component: IntegratedPanelComponent },

  // 客服相关
  { path: 'client-service-center/oaMonitor/oaMonitorComponent', component: OaMonitorComponent },
  { path: 'client-service-center/oaMonitor/oaMonitorViewComponent', component: OaMonitorViewComponent },
  { path: 'client-service-center/complaintRate/complaintRateComponent', component: ComplaintRateComponent },
  { path: 'client-service-center/MonthlyComplaint/MonthlyComplaintComponent', component: MonthlyComplaintComponent },

  // 人资相关
  { path: 'administration/administrationComponent', component: AdministrationComponent },
  { path: 'administration/administrationStoreComponent', component: AdministrationStoreComponent },
  { path: 'schedule/scheduleFormComponent', component: ScheduleFormComponent },
  { path: 'attendanceMonthly/AttendanceMonthlyFormComponent', component: AttendanceMonthlyFormComponent },

  // 总账报表
  { path: 'ledgerForm/ledgerFormComponent', component: LedgerFormComponent },

  // 状态流管理
  { path: 'stateFlowManagement/StateMachineComponent', component: StateMachineComponent },

  // 部门总控
  {
    path: 'departmentControl', component: DepartmentControlComponent,
    children: [
      { path: 'customerServiceControl', component: CustomerServiceControlComponent },        // 客服中心
      { path: 'portalCenterControl', component: PortalCenterControlComponent },              // 门管中心
      { path: 'businessCenterControl', component: BusinessCenterControlComponent },          // 商务中心
      { path: 'financialCenterControl', component: FinancialCenterControlComponent },        // 财务中心
      { path: 'warehouseCenterControl', component: WarehouseCenterControlComponent },        // 仓储中心
      { path: 'governmentCentreControl', component: GovernmentCentreControlComponent },      // 行政中心
      { path: 'dataCenterControl', component: DataCenterControlComponent },                  // 数据中心
      { path: 'purchasingCenterControl', component: PurchasingCenterControlComponent },      // 采购中心
      { path: 'systemMasterControl', component: SystemMasterControlComponent },              // 系统监控
      { path: 'storeCenterControl', component: StoreCenterControlComponent },                // 门店中心
    ],
  },

  // 综合分析
  {
    path: 'comprehensiveAnalysis', component: DepartmentControlComponent,
    children: [
      { path: 'customerComplaint', component: CustomerComplaintComponent },                  // 客诉分析
      { path: 'technicalReview', component: TechnicalReviewComponent },                      // 技术审核分析
      { path: 'outsourcingAnalysis', component: OutsourcingAnalysisComponent },              // 外协分析
      { path: 'lossAssessment', component: LossAssessmentComponent },                        // 定损报案分析
      { path: 'carInsurance', component: CarInsuranceComponent },                            // 车险分析
      { path: 'internalAssociation', component: InternalAssociationComponent },              // 内协分析
      { path: 'trendAnalysis', component: TrendAnalysisComponent },                          // 趋势分析
    ],
  },

  // 门店经营
  { path: 'business/storeMoneyComponent', component: StoreMoneyComponent },                  // 门店资金
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class BiRoutingModule {
}
